home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Chat & Communication
/
Digsby build 37
/
digsby_setup.exe
/
lib
/
common
/
slotssavable.pyo
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2008-10-13
|
3KB
|
52 lines
# Source Generated with Decompyle++
# File: in.pyo (Python 2.5)
from util.observe import Observable
from util import do
class SlotsSavable(object):
def __getstate__(self):
return (dict,)((lambda .0: for k in .0:
(k, getattr(self, k)))(self.__slots__))
def __setstate__(self, info):
(None, do)((lambda .0: for key in .0:
setattr(self, key, info.get(key, None)))(self.__slots__))
def __eq__(self, s):
try:
return (None, all)((lambda .0: for attr in .0:
getattr(self, attr) == getattr(s, attr))(self.__slots__))
except Exception:
return False
def __hash__(self):
val = 0
for slot in self.__slots__:
pass
return val
class ObservableSlotsSavable(SlotsSavable, Observable):
def __init__(self):
Observable.__init__(self)
def __setstate__(self, info):
if not hasattr(self, 'observers'):
Observable.__init__(self)
(None, do)((lambda .0: for key in .0:
setattr(self, key, info.get(key, None)))(self.__slots__))